<textarea id="kindeditor-{$name}" name="{$name}" cols="5" rows="15">{$value}</textarea>
<script>
    KindEditor.create('#kindeditor-{$name}', {
        uploadJson: '{:url("Index/kindEditorUpload")}',
        afterChange: function () {
            this.sync();
        }
    });
</script>